<?php
/**
 * 系統名稱: Lotto 系統
 * 檔案說明: 專案管理-修改
 * $Author$
 * $Id$
 *
 */
include_once("../config.inc.php");

$fp = @file(__Membertemplate_Path."/wager_success.html");
$fp = implode("", $fp);
$fp = setHTMLCharset($fp);
$fp = str_replace("{MemAccount}", $_SESSION["Member_Info"] -> Account, $fp);
$fp = str_replace("{MemCurrency}", $_SESSION["Member_Info"] -> CreditLine, $fp);

preg_match("/<!--@ BetList While Start @\/\/-->(.+)<!--@ BetList While End @\/\/-->/s", $fp, $arrTmp);
$strTemplate = "";
if(is_array($arrSucc)){
	while(list($k, $v) = each($arrSucc)){
		$strTmp = str_replace("{BetID}", $v["BetID"], $arrTmp[1]);
		$strTmp = str_replace("{StakeMoneyValue}", $v["StakeMoneyValue"], $strTmp);
		$strTmp = str_replace("{WagerMessage}", $v["WagerMessage"], $strTmp);
		$strTmp = str_replace("{PayOffValue}", $v["PayOffValue"], $strTmp);
		$strTemplate .=$strTmp;
	}
}

$fp = preg_replace("/<!--@ BetList While Start @\/\/-->.+<!--@ BetList While End @\/\/-->/s", $strTemplate, $fp);
while(list($k, $v) = each($_strWagerInsert)){
	$fp = str_replace("{".$k."}", $v, $fp);
}

//輸出
WebOutputHTML($fp, 1);
?>